# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=lzbench
pkgver=1.8
pkgrel=0
pkgdesc="lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors"
url="https://github.com/inikep/lzbench"
arch="all !x86 !s390x !mips !mips64"
license="GPL zlib MIT Unlicense BSD Apache-2.0 CDDL CC0 custom"
options="!check" # No test suite from upstream
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/inikep/lzbench/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/"

build() {
	make
}

package() {
	install -Dm 755 lzbench "$pkgdir"/usr/bin/lzbench

	install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md
}

sha512sums="3fbbc95159aa99844039ccf45fecf7a1637bb049a87542eb942a849234d753907c1f78f7fe3776855a282bc0cb1f363d26ca6dae4bc0d16592adc0853c977d16  lzbench-1.8.tar.gz"
